package com.x.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.x.client.model.FastBrand;
import com.x.client.rpc.FastBrandRpcService;
import com.x.framework.controller.BaseController;
import com.x.framework.controller.ResultCode;
import com.x.framework.controller.ResultModel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 快速选车
 */
@RestController
@RequestMapping(value = "/fastBrand")
public class FastBrandController extends BaseController{

	@Reference
	private FastBrandRpcService fastBrandRpcService;// 快速选车服务

	/**
	 * 查询快速选车信息列表
	 * @param fastBrand
	 * @return
	 */
	@RequestMapping(value = "/selectFastBrandList", method = { RequestMethod.POST, RequestMethod.GET })
	public ResultModel selectFastBrandList(FastBrand fastBrand){
		return new ResultModel(ResultCode.RESULT_SUCCESS, "查询成功", fastBrandRpcService.selectFastBrandList(fastBrand));
	}

}
